<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <div class="widget-body">
                        <fieldset>
							<div class="widget-head am-cf">
                                <div class="widget-title am-fl">站点设置</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">网站名称 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[name]"
                                           value="{$model['name']}" required>
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">公司名称 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[company]"
                                           value="{$model['company']}" >
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">公司地址 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[address]"
                                           value="{$model['address']}" >
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">ICP备案号 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[icp]"
                                           value="{$model['icp']}">
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label"> 站点描述 </label>
                                <div class="am-u-sm-9 am-u-end">
									<input type="text" class="tpl-form-input" name="data[description]"
                                           value="{$model['description']}">
                                </div>
                            </div>							
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label"> SEO关键字 </label>
                                <div class="am-u-sm-9 am-u-end">
									<textarea class="" rows="3" placeholder="请输入SEO关键字"
                                              name="data[keywords]">{$model['keywords']}</textarea>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">百度统计 </label>
                                <div class="am-u-sm-9 am-u-end">
									<textarea class="" rows="3" placeholder="请把百度统计代码粘贴至此"
                                              name="data[baidu_count]">{$model['baidu_count']}</textarea>
                                    <small>获取统计代码，<a href="https://tongji.baidu.com/" target="_blank">百度统计</a></small>
                                </div>
                            </div>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">联系方式</div>
                            </div>
                            <div class="am-form-group">
                    			<label class="am-u-sm-3 am-u-lg-2 am-form-label am-text-xs">微信二维码 </label>
                    			<div class="am-u-sm-9 am-u-end">
                    				<div class="am-form-file">
                    					<button type="button" class="upload-file am-btn am-btn-primary am-btn-xs">
                    						<i class="am-icon-cloud-upload"></i> 选择图片
                    					</button>
                    					<div class="uploader-list am-cf">
                                            {if !empty($model['wechat'])}
                                                <div class="file-item">
                                                    <img src="{$model['wechat']}">
                                                    <input type="hidden" name="data[wechat]"
                                                           value="{$model['wechat']}">
                                                </div>
                                            {/if}
                                        </div>
                    				</div>
                    				<div class="help-block">
                                        <small>文件最大2Mb，支持bmp/png/jpeg/jpg/gif格式</small>
                                    </div>
                    			</div>
                    		</div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">在线QQ </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[qq]"
                                           value="{$model['qq']}" >
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">联系电话 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[phone]"
                                           value="{$model['phone']}" >
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!-- 图片文件列表模板 -->
{include file="../addons/upload/view/template/tpl_file_item_url.html" /}
<!-- 文件库弹窗 -->
{include file="../addons/upload/view/template/file_library.html" /}
<script>
    $(function () {
        $('.upload-file').selectImages({
            name: 'data[wechat]'
        });
        $('#my-form').formPost();

    });
</script>
